package com.baiyu.scerp.customer.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baiyu.common.annotation.Excel;
import com.baiyu.common.core.domain.BaseEntity;

/**
 * 客户信息对象 sc_customer
 * 
 * @author wph
 * @date 2025-08-15
 */
public class ScCustomer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 客户ID，主键 */
    private Long customerId;

    /** 客户编码，唯一标识 */
    @Excel(name = "客户编码，唯一标识")
    private String customerCode;

    /** 客户名称 */
    @Excel(name = "客户名称")
    private String customerName;

    /** 联系人 */
    @Excel(name = "联系人")
    private String contactPerson;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phone;

    /** 电子邮箱 */
    @Excel(name = "电子邮箱")
    private String email;

    /** 客户地址 */
    @Excel(name = "客户地址")
    private String address;

    /** 客户类型：1-个人，2-企业 */
    @Excel(name = "客户类型：1-个人，2-企业")
    private String customerType;

    /** 状态：0-正常，1-禁用 */
    @Excel(name = "状态：0-正常，1-禁用")
    private String status;

    /** 信用额度 */
    @Excel(name = "信用额度")
    private BigDecimal creditLimit;

    public void setCustomerId(Long customerId) 
    {
        this.customerId = customerId;
    }

    public Long getCustomerId() 
    {
        return customerId;
    }

    public void setCustomerCode(String customerCode) 
    {
        this.customerCode = customerCode;
    }

    public String getCustomerCode() 
    {
        return customerCode;
    }

    public void setCustomerName(String customerName) 
    {
        this.customerName = customerName;
    }

    public String getCustomerName() 
    {
        return customerName;
    }

    public void setContactPerson(String contactPerson) 
    {
        this.contactPerson = contactPerson;
    }

    public String getContactPerson() 
    {
        return contactPerson;
    }

    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }

    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }

    public void setCustomerType(String customerType) 
    {
        this.customerType = customerType;
    }

    public String getCustomerType() 
    {
        return customerType;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setCreditLimit(BigDecimal creditLimit) 
    {
        this.creditLimit = creditLimit;
    }

    public BigDecimal getCreditLimit() 
    {
        return creditLimit;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("customerId", getCustomerId())
            .append("customerCode", getCustomerCode())
            .append("customerName", getCustomerName())
            .append("contactPerson", getContactPerson())
            .append("phone", getPhone())
            .append("email", getEmail())
            .append("address", getAddress())
            .append("customerType", getCustomerType())
            .append("status", getStatus())
            .append("creditLimit", getCreditLimit())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
